<template>
	<div>
		<el-row>
			<el-col :span="4">
				<el-input placeholder="请输入内容" size="small" v-model="input10" clearable>
				</el-input>
			</el-col>
			<el-col :span="2" >
				<el-button size="mini" style="margin-left: 20px;" type="primary">
					<i class="iconfont icon-search"></i>
					 搜索</el-button>
			</el-col>
		</el-row>
		<el-table :data="logs" stripe style="width: 100%">
			<el-table-column prop="id" label="ID" width="180" sortable>
			</el-table-column>
			<el-table-column prop="user_name" label="操作人" width="180">
			</el-table-column>
			<el-table-column prop="operator" label="操作">
			</el-table-column>
			<el-table-column prop="method" label="方法">
			</el-table-column>
			<el-table-column prop="params" label="参数">
			</el-table-column>
			<el-table-column prop="time" label="操作时长" sortable>
			</el-table-column>
			<el-table-column prop="optime" label="操作时间" sortable>
			</el-table-column>
		</el-table>
		<el-pagination @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page="currentPage" :page-sizes="[100, 200, 300, 400]" :page-size="100" layout="total, sizes, prev, pager, next, jumper" :total="400">
		</el-pagination>

	</div>
</template>

<script>
	export default {
		methods: {
			handleSizeChange(val) {
				console.log(`每页 ${val} 条`);
			},
			handleCurrentChange(val) {
				console.log(`当前页: ${val}`);
			}
		},
		data() {
			return {
				currentPage: 1,
				logs: [{
						id: 1,
						user_name: "刘兴",
						operator: "登录",
						method: "java.lang.Math.rand",
						params: "zhangsan,12",
						time: "10",
						optime: "2018-02-10"
					},
					{
						id: 2,
						user_name: "张三",
						operator: "删除用户",
						method: "java.lang.Math.rand",
						params: "zhangsan,12",
						time: "10",
						optime: "2018-02-10"
					},
					{
						id: 3,
						user_name: "李四",
						operator: "查询用户",
						method: "java.lang.Math.rand",
						params: "zhangsan,12",
						time: "10",
						optime: "2018-02-10"
					},
					{
						id: 4,
						user_name: "王五",
						operator: "修改用户",
						method: "java.lang.Math.rand",
						params: "zhangsan,12",
						time: "10",
						optime: "2018-02-10"
					}
				]
			}
		}
	}
</script>

<style>

</style>